package com.yingxin.yxerp.module.message.constant;

public enum UserMsgType {

    SP_CC("SP_CC", "审核抄送"),

    SP_A("SP_A", "审核通过"),

    SP_R("SP_R", "审核拒绝"),

    YWB_PUB("YWB_PUB", "业务部计划发布"),

    YWB_REC("YWB_REC", "业务部计划接收"),

    GCHB("GCHB","工程进度汇报"),

    JC("JC","内部奖惩通知"),
    ;

    private String type;

    private String typeName;

    UserMsgType(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public static UserMsgType getEnum(String type) {
        for (UserMsgType i : UserMsgType.values()) {
            if (i.getType().equals(type)) {
                return i;
            }
        }
        return null;
    }

}
